[Unit]
Description=Kubernetes Kube-Proxy Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=network.target

[Service]
WorkingDirectory=/var/lib/kube-proxy
ExecStart=/root/local/bin/kube-proxy \
  --bind-address={{hostvars[inventory_hostname]['ansible_eth0']['ipv4']['address']}} \
  --hostname-override={{hostvars[inventory_hostname]['ansible_eth0']['ipv4']['address']}} \
  --cluster-cidr={{SERVICE_CIDR}} \
  --kubeconfig=/etc/kubernetes/kube-proxy.kubeconfig \
  --logtostderr=true \
  --v=2
Restart=on-failure
RestartSec=5
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target